#include <openssl/blowfish.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    BF_KEY key;
    unsigned char in[64],out[64];
    BF_set_key(&key, 40, "abcdefgh0123456789");
    strcpy(in,"ABCD");
    strcpy(out,"ABCD");

    BF_ecb_encrypt(in, out, &key, 1);
    strcpy(in,"12324ABCD");
    BF_ecb_encrypt(out, in, &key, 0);

    printf("%s\n", in);
    printf("%s\n", out);
    
  return 0;
}


